<?php

/**
 * Created by PhpStorm.
 * User: didi
 * Date: 2017/9/25
 * Time: 17:27
 */
include("config.php");
include("httpclient.php");

class Url2Url
{
    /*
     * @author  vincent ln1394@163.com
     * @date 2017-9-25
     */
    /*
	 * @param picUrl
	 */
    public static function compare($url1,$url2){
        //调用开放平台人脸识别服务
        $arrPost = array(
            'url1'=>$url1,
            'url2'=>$url2,
        );
        $img = HttpClient::post(Config::URL2URL,$arrPost);
        return $img;
    }
}
$url1 = 'http://i.wisvision.cn:8080/product/1.jpg';
$url2 = 'http://i.wisvision.cn:8080/product/0.jpg';

var_dump(Url2Url::compare($url1,$url2));
